
<%@ page import="apralms.Project" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'project.label', default: 'Project')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	
	<body>
		<a href="#show-project" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-project" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list project">
			
				<g:if test="${projectInstance?.code}">
				<li class="fieldcontain">
					<span id="code-label" class="property-label"><g:message code="project.code.label" default="Code" /></span>
					
						<span class="property-value" aria-labelledby="code-label"><g:fieldValue bean="${projectInstance}" field="code"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${projectInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="project.name.label" default="Name" /></span>
					
						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${projectInstance}" field="name"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${projectInstance?.type}">
				<li class="fieldcontain">
					<span id="type-label" class="property-label"><g:message code="project.type.label" default="Type" /></span>
					
						<span class="property-value" aria-labelledby="type-label"><g:fieldValue bean="${projectInstance}" field="type"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${projectInstance?.race}">
				<li class="fieldcontain">
					<span id="race-label" class="property-label"><g:message code="project.race.label" default="Race" /></span>
					
						<span class="property-value" aria-labelledby="race-label"><g:fieldValue bean="${projectInstance}" field="race"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${projectInstance?.period}">
				<li class="fieldcontain">
					<span id="period-label" class="property-label"><g:message code="project.period.label" default="Period" /></span>
					
						<span class="property-value" aria-labelledby="period-label"><g:fieldValue bean="${projectInstance}" field="period"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${projectInstance?.birthDate}">
				<li class="fieldcontain">
					<span id="birthDate-label" class="property-label"><g:message code="project.birthDate.label" default="Birth Date" /></span>
					
						<span class="property-value" aria-labelledby="birthDate-label"><g:formatDate date="${projectInstance?.birthDate}" /></span>
					
				</li>
				</g:if>
				
				<g:if test="${projectInstance?.preDefineParas}">
				<li class="fieldcontain">
					<span id="preDefineParas-label" class="property-label"><g:message code="project.preDefineParas.label" default="Pre Define Paras" /></span>
					
						<span class="property-value" aria-labelledby="preDefineParas-label"><g:fieldValue bean="${projectInstance}" field="preDefineParas"/></span>
					
				</li>
				</g:if>			
			
				<g:if test="${projectInstance?.classParas}">
				<li class="fieldcontain">
					<span id="classParas-label" class="property-label"><g:message code="project.classParas.label" default="Class Paras" /></span>
					
						<span class="property-value" aria-labelledby="classParas-label"><g:fieldValue bean="${projectInstance}" field="classParas"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${0 && projectInstance?.systems}">
				<li class="fieldcontain">
					<span id="systems-label" class="property-label"><g:message code="project.systems.label" default="Systems" /></span>
					
						<g:each in="${projectInstance.systems}" var="s">
						<span class="property-value" aria-labelledby="systems-label"><g:link controller="system" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
				
				<g:if test="${0 && projectInstance?.products}">
				<li class="fieldcontain">
					<span id="products-label" class="property-label"><g:message code="project.products.label" default="Products" /></span>
					
						<g:each in="${projectInstance.products}" var="p">
						<span class="property-value" aria-labelledby="products-label"><g:link controller="product" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>

				<g:if test="${0 && projectInstance?.schemes}">
				<li class="fieldcontain">
					<span id="schemes-label" class="property-label"><g:message code="project.schemes.label" default="Schemes" /></span>
					
						<g:each in="${projectInstance.schemes}" var="s">
						<span class="property-value" aria-labelledby="schemes-label"><g:link controller="scheme" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
				
				<g:if test="${projectInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="project.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${projectInstance?.dateCreated}" /></span>
					
				</li>
				</g:if>
							
				<g:if test="${projectInstance?.lastUpdated}">
				<li class="fieldcontain">
					<span id="lastUpdated-label" class="property-label"><g:message code="project.lastUpdated.label" default="Last Updated" /></span>
					
						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${projectInstance?.lastUpdated}" /></span>
					
				</li>
				</g:if>
				
				<li class="fieldcontain">
				<div id="celebs">
			        <ul id="accordion">
		        	<li>
		        		<g:set var="systemName" value="${message(code: 'system.label', default: 'System')}" />
		        		<g:message code="default.list.label" args="[systemName]" /> [ ${projectInstance.systems.size()} ]
		        		<ul>
			        		<g:if test="${projectInstance?.systems}">
							<g:each in="${projectInstance.systems}" var="s">
							<li>
								<g:link controller="system" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link> ${s?.classParas}
							</li>
							</g:each>
							</g:if>
						</ul>
		        	</li>
		        	<li>
		        		<g:set var="productName" value="${message(code: 'product.label', default: 'Product')}" />
		        		<g:message code="default.list.label" args="[productName]" /> [ ${projectInstance.products.size()} ]
		        		<ul>
			        		<g:if test="${projectInstance?.products}">
							<g:each in="${projectInstance.products}" var="s">
							<li>
								<g:link controller="product" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link> ${s?.classParas}
							</li>
							</g:each>
							</g:if>
						</ul>
		        	</li>
		        </ul> 
		      </div>
		      
		      </li>        
			</ol>
        
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${projectInstance?.id}" />
					<g:link class="edit" action="edit" id="${projectInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
					<g:link class="add" controller="system" action="create" params="['project.id': projectInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'system.label', default: 'System')])}</g:link>
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
